<?php 
include '../DB.php';
$key=$_GET["key"];
$sql="select * from conInfo where conKey='$key' limit 1";
$myDb=new DB();
$array=$myDb->queryOneData($sql);
$bgId=$array["bgId"];
$from=$array["fromUser"];
$to=$array["toUser"];
$content=$array["content"];
$url="background".$bgId.".php?object=$to&text=$content&name=$from";
$updateSql="update conInfo set updateTime=now() where conKey='$key'";
$myDb->updateData($updateSql);
header("Location: $url");
 ?>